package com.cityfood.mapper;

import com.cityfood.pojo.CfComment;
import com.cityfood.pojo.CfCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CfCommentMapper {
    int countByExample(CfCommentExample example);

    int deleteByExample(CfCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CfComment record);

    int insertSelective(CfComment record);

    List<CfComment> selectByExample(CfCommentExample example);
    
    List<CfComment> selectCommentOrderByTime(@Param("productId")Integer productId,@Param("number")String number);
    
    CfComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CfComment record, @Param("example") CfCommentExample example);

    int updateByExample(@Param("record") CfComment record, @Param("example") CfCommentExample example);

    int updateByPrimaryKeySelective(CfComment record);

    int updateByPrimaryKey(CfComment record);
}